<template>
  <div class="news-container">
    <!-- 新闻标题 -->
    <div class="news-title">
      {{newsTitle}}
    </div>
    <!-- 新闻详情 -->
    <div class="news-details">
      <div>
        <span class="time">{{newsTime}}</span>
        <span class="source">来源：{{publisherName}}</span>
        <span class="location">发布位置：{{userLocation}}</span>
      </div>
      <div class="report-button">举报</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DetailTitle',
  props: {
    newsTitle: {
      type: [String, Number],
      default: ''
    },
    newsTime: {
      type: [String, Number],
      default: ''
    },
    publisherName: {
      type: [String, Number],
      default: '' 
    },
    userLocation: {
      type: [String, Number],
      default: ''
    }
  },
}
</script>

<style scoped>
.news-container {
  background-color: white;
  /* padding: 20px; */
  /* border-radius: 8px; */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  width: 810px;
}

.news-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.news-details {
  font-size: 14px;
  color: #666;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-details .time {
  margin-right: 10px;
}

.news-details .source {
  margin-right: 10px;
}

.report-button {
  font-size: 14px;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
}
</style>